package com.fuhao.springboot.Service.Impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.fuhao.springboot.mapper.StudentsMapper;
import com.fuhao.springboot.model.Students;
import com.fuhao.springboot.service.StudentsServiceDubbo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Service(timeout = 10000)
public class StudentsServiceImpl implements StudentsServiceDubbo {

    @Autowired
    private StudentsMapper studentsMapper;


    @Override
    public List<Students> findAll() {
        return studentsMapper.selectByExample(null);
    }
}
